﻿<Page x:Class="University.Workshop.Presentation.CollectControl.SearchPayments"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" Height="563" Width="780" 
	Title="SearchPayments" xmlns:my="clr-namespace:University.Workshop.Presentation.ControlWPF" Loaded="Page_Loaded">

    <Grid>
        <Grid Height="563" Width="780"  
          HorizontalAlignment="Center" VerticalAlignment="Top">
            <Path Data="F1M89,500C86.791,500,85,501.791,85,504L85,504L85,538C85,540.209,86.791,542,89,542L89,542L1081,542C1083.209,542,1085,540.209,1085,538L1085,538L1085,504C1085,501.791,1083.209,500,1081,500L1081,500z" Height="50" Margin="20,0,12,459" Stretch="Fill" Stroke="#FFB6BDBA" VerticalAlignment="Bottom">
                <Path.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFF0F9F6" Offset="0" />
                        <GradientStop Color="sc#1, 0.8645034, 0.9386971, 0.9131128" Offset="0.036626586095394487" />
                        <GradientStop Color="sc#1, 0.849580646, 0.919979036, 0.8946999" Offset="0.046193367402403762" />
                        <GradientStop Color="sc#1, 0.8297841, 0.8951477, 0.8702733" Offset="0.052599494473647423" />
                        <GradientStop Color="sc#1, 0.8061086, 0.86545074, 0.8410604" Offset="0.057584354782454161" />
                        <GradientStop Color="sc#1, 0.7912979, 0.8468732, 0.822785735" Offset="0.059999998658895493" />
                        <GradientStop Color="#FFE6EDEA" Offset="0.059999998658895493" />
                        <GradientStop Color="#FFE6EDEA" Offset="1" />
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
            <TextBlock FontSize="21" FontWeight="Bold" Margin="28,62,0,464" TextWrapping="Wrap" HorizontalAlignment="Left" Width="217"><TextBlock.Effect><DropShadowEffect BlurRadius="1" Color="White" Direction="270" Opacity="0.7" ShadowDepth="1" /></TextBlock.Effect> <Run Language="es-es" Text="Historial de Cobros" /></TextBlock>
            <!--<Button Content="Buscar" Height="23" HorizontalAlignment="Center" Margin="515,73,174,0" Name="SearchBtn" VerticalAlignment="Top" Width="91" Click="SearchBtn_Click" />-->
            <DataGrid HeadersVisibility="None" 
                  AutoGenerateColumns="False"  
                  CanUserAddRows="False"
                  Height="298" 
                  HorizontalAlignment="Center"
                  Margin="122,192,114,0" 
                  Name="ChargeFindedDgv"
                  IsManipulationEnabled="False"
                  SelectionMode="Single"
                  VerticalAlignment="Top" 
                  Width="544" >
                <DataGrid.Columns>
                    <DataGridTemplateColumn Header="PaymentDate" Width="340">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Label Content="{Binding PaymentDate }" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>

                    <DataGridTemplateColumn Header="TotalAmount" Width="100">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <Label Content="{Binding TotalAmount }" Height="16" VerticalContentAlignment="Center" Style="{StaticResource DataGridLabel}"/>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>

                    <DataGridTemplateColumn Header="Acciones" Width="100">
                        <DataGridTemplateColumn.CellTemplate>
                            <DataTemplate>
                                <StackPanel Orientation="Horizontal">
                                    <Button Height="32" Name="ShowUserBtn" ToolTip="Ver Cobro" Width="32" Click="ShowUserBtn_Click">
                                        <Button.Background>
                                            <ImageBrush ImageSource="/University.Workshop.Presentation;component/Resources/Icons/file_find.ico" Stretch="Fill" TileMode="FlipXY" Viewport="0,0,32,32" ViewportUnits="Absolute" />
                                        </Button.Background>
                                    </Button>
                                </StackPanel>
                            </DataTemplate>
                        </DataGridTemplateColumn.CellTemplate>
                    </DataGridTemplateColumn>

                </DataGrid.Columns>
            </DataGrid>
            <Rectangle Fill="#43000000" Height="25" HorizontalAlignment="Left" Margin="121,161,0,0" Name="rectangle1" Stroke="Black" VerticalAlignment="Top" Width="545" />

            <Label Content="Desde" Height="28" HorizontalAlignment="Left" Margin="453,111,0,0" Name="label6" VerticalAlignment="Top" />
            <DatePicker Name="InitialDateDpck" CommandManager.PreviewCanExecute="CantCupyPasteOrCut"  PreviewTextInput="DatesTxt_PreviewTextInput" PreviewKeyDown="DatesTxt_PreviewKeyDown" Height="25" HorizontalAlignment="Right" Margin="0,129,257,0" VerticalAlignment="Top" Width="112" DisplayDateStart="1/1/2000" />

            <Label Content="Hasta" HorizontalAlignment="Left" Margin="582,111,0,424" Name="label11" Width="38" />
            <DatePicker Name="FinalDateDpck" IsManipulationEnabled="False" CommandManager.PreviewCanExecute="CantCupyPasteOrCut"  PreviewTextInput="DatesTxt_PreviewTextInput" PreviewKeyDown="DatesTxt_PreviewKeyDown" Height="25" HorizontalAlignment="Left" Margin="551,129,0,0" VerticalAlignment="Top" Width="112" DisplayDateStart="1/1/2000" />
            <Label Content="Fecha del Pago" Height="28" HorizontalAlignment="Left" Margin="134,164,0,0" Name="label3" VerticalAlignment="Top" />
            <Label Content="Monto (Bs.)" Height="28" HorizontalAlignment="Left" Margin="459,164,0,0" Name="label7" VerticalAlignment="Top" Width="69" />
            <Label Content="Total     Bs." Height="28" Margin="379,500,335,0" Name="label4" VerticalAlignment="Top" />
            <Label Content="-" Height="28" HorizontalAlignment="Left" Margin="475,500,0,0" Name="TotalAmountLbl" VerticalAlignment="Top" />
            <Label Content="Manzano" Height="28" HorizontalAlignment="Left" Margin="130,111,0,0" Name="label8" VerticalAlignment="Top" />
            <Label Content="Lote" Height="28" HorizontalAlignment="Left" Margin="231,111,0,0" Name="label9" VerticalAlignment="Top" />
            <ComboBox Height="23" HorizontalAlignment="Right" Margin="0,130,587,0" Name="ManzanoCbx" VerticalAlignment="Top" Width="68" SelectionChanged="ManzanoCbx_SelectionChanged" />
            <ComboBox Height="23" IsEnabled="False" HorizontalAlignment="Left" Margin="212,131,0,0" Name="LoteCbx" VerticalAlignment="Top" Width="68" SelectionChanged="LoteCbx_SelectionChanged" />
            <Label Content="CI del Socio" Height="28" HorizontalAlignment="Left" Margin="130,500,0,0" Name="label10" VerticalAlignment="Top" />
            <Label Content="Socio" Height="28" HorizontalAlignment="Left" Margin="130,532,0,0" Name="label12" VerticalAlignment="Top" />
            <Label Content="-" Height="28" HorizontalAlignment="Left" Margin="231,532,0,0" Name="SocioLbl" VerticalAlignment="Top" />
            <Label Content="-" Height="28" HorizontalAlignment="Left" Margin="231,0,0,35" Name="CiLbl" VerticalAlignment="Bottom" />
            <Label Content="Acción" Height="28" HorizontalAlignment="Left" Margin="573,164,0,0" Name="label1" VerticalAlignment="Top" />
        </Grid>
    </Grid>
</Page>